<article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false"><section class="" style="background-color: #fff; " avalonctrl="incomedetails">
    <div class="incomedetails buyliststyle_1 un-buy-record-list">
        <div class="buylist-no">第<?php echo $this->_var['order']['qishu']; ?>期
            <div class="arrow"></div>
            <div class="little-arrow"></div>
        </div>
        <div class="buylist-box item-link" style="border-bottom: 1px solid #E7E7E7;">
            <div class="buylist-info">
                <div class="">
                    <div class="incomedetails-top"></div>
                    <div class="incomedetails-top" style="height: 43px;">
                        <div class="buylist-subtitle" style="color:#999;"><?php echo $this->_var['order']['sheep_pinzhong']; ?></div>
                        <div class="buylist-subnum  black"><?php echo $this->_var['order']['price']; ?>/只</div>
                    </div>
                    <div class="incomedetails-top">
                        <div class="buylist-subtitle" style="color:#999;">年分红</div>
                        <div class="buylist-subnum black"><?php echo $this->_var['order']['bonus']; ?>%</div>
                    </div>
                </div>
                <div class="buylist-subinfo" style="margin-top: 0;">
                    <div class="incomedetails-bottom">
                        <div class="buylist-subtitle" style="color:#999;">我的羊</div>
                        <div class="buylist-subnum  orange fw800"><?php echo $this->_var['order']['sheep_number']; ?>只</div>
                    </div>
                    <div class="incomedetails-bottom">
                        <div class="buylist-subtitle" style="color:#999;">购羊款</div>
                        <div class="buylist-subnum black"><?php echo $this->_var['order']['sheep_price']; ?></div>
                    </div>
                    <div class="incomedetails-bottom">
                        <div class="buylist-subtitle" style="color:#999;">期限</div>
                        <div class="buylist-subnum black"><?php echo $this->_var['order']['cycle']; ?>个月</div>
                    </div>
                </div>
            </div>
            <div class="buylist-buy">
                <div class="circle buylist-buying ro<?php echo $this->_var['order']['bili']; ?>">
                    <div class="pie_left">
                        <div class="circle_left"></div>
                    </div>
                    <div class="pie_right">
                        <div class="circle_right"></div>
                    </div>

                    <div class="circle_mask">
                        <div class="incomedetails-atcircle">购羊款将于
                            <br><?php echo $this->_var['order']['bonus_times']; ?>
                            <br>转入钱包
                        </div>
                    </div>
                    
                </div>
            </div>
        </div>
    </div>

    
    
    <div style="overflow: hidden;border-bottom: 1px solid #E7E7E7;margin-bottom: 15px;font-size: 12px;color:#555; padding:0 15px 10px;">
    <ul style="line-height:2; overflow: hidden; font-size:14px; color:#999;">
    <li>第<?php echo $this->_var['order']['qishu']; ?>期：<?php echo $this->_var['order']['sheep_name']; ?>【按月分红】</li>
    <li>开始时间：<?php echo $this->_var['order']['add_time']; ?></li>
    <li>现在时间：<?php echo $this->_var['order']['times']; ?></li>
    <li>返还购羊款时间：<?php echo $this->_var['order']['bonus_time_done_yue']; ?></li>
    <li>联合养殖总天数：<?php echo $this->_var['order']['gongdays']; ?>天</li>
    <li style="float:left;">已过天数：<?php echo $this->_var['order']['yiday']; ?>天</li>
    <li style="float:right;">剩余天数：<?php echo $this->_var['order']['shengdays']; ?>天</li>
     </ul>

    </div>

    <div style="overflow: hidden;font-size: 14px;color:#999;margin-bottom: 15px;padding:0 12px;">
        <div style="float: left;">第<?php echo $this->_var['order']['qishu']; ?>期 预期分红 (元)<strong style="margin-left: 10px;font-weight: normal;"><?php echo $this->_var['order']['shouyi']; ?></strong></div>
        <div style="float: right;"><a style="color:#3f97f0;" href="user.php?act=mycontractinfo&id=<?php echo $this->_var['order']['order_id']; ?>">《第<?php echo $this->_var['order']['qishu']; ?>期合同》</a></div>
    </div>

    <div style="overflow: hidden;font-size: 14px;color:#999;margin-bottom: 15px;padding:0 12px;">
        <div style="float: left;">第<?php echo $this->_var['order']['qishu']; ?>期 已分红 (元)<strong style="margin-left: 10px;color:#f26214;font-weight: normal;"><?php echo $this->_var['order']['yishouyi']; ?></strong></div>
        <div style="float: right;"><a href="user.php?act=mycontract" style="color:#3f97f0;">《保单列表》</a></div>
    </div>

    <div class="table_info">
        <table class="incomedetails-table">
            <thead>
            <tr>
                <th>时 间</th>
                <th>收 益</th>
            </tr>
            </thead>
            <tbody>
				<?php if ($this->_var['order']['yishouyilist']): ?>
				<?php $_from = $this->_var['order']['yishouyilist']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
				<tr>
					<td><?php echo $this->_var['item']['bonus_time']; ?></td>
					<td><?php echo $this->_var['item']['money']; ?></td>
				</tr>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				<?php endif; ?>
            </tbody>
        </table>
    </div>
</section>
</article>